<table class="content" align="center" cellspacing="0" cellpadding="0">
  <tr>
    <td class="content_title_top"><div><?php echo Kohana::lang('faqs_lang.tt_page') ?></div></td>
  </tr>
  <tr>
    <td class="content_middle">
    <table align="center" cellspacing="0" cellpadding="5">
      <tr>
        <td> 
        <DIV id=faqs>
        
	  <?php  for($i=0; $i<count($mlist); $i++){ ?>
 		<H3><?php echo $mlist[$i]['faqs_title']?></H3>
		<DIV>
        <?php echo $mlist[$i]['faqs_content']?>
        </DIV>
     
      <?php }?>
      </DIV>
	  </td>
      </tr>
	  <? if(count($mlist)>$this->site['site_num_line2']){
	  ?>
      <tr>
        <td><div class='pagination'><?php echo $this->pagination?></div></td>
      </tr>
      <? } ?>
    </table>

    </td>
  </tr>
 <tr>
    <td class="content_bottom"></td>
  </tr>
</table>
<script type="text/javascript" src="<?php echo $this->site['base_url']?>plugins/mootools/mootools.1.2.3.js"></script>
<SCRIPT type=text/javascript>
		window.addEvent('domready',function() {
			$$('#faqs h3').each(function(header,i) {
				var state = false, answer = header.getNext('div');
				answer.slide('out');
				header.addEvent('click',function(e) {
					state = !state;
					answer.slide(state ? 'in' : 'out');
					if(state) {
						header.addClass('active');
					}
					else {
						header.removeClass('active');
					}
				});
									answer.setStyles({
						overflow: '',
						height: 'auto'
					});
							});
		});
	</SCRIPT>